package com.eshopkeeper.core.util.yunzhi;

/**
 * 返回结果枚举
 * @author chen
 *
 */
public enum ResultCode {

    /**
     * 0开头 --系统错误
     * 1开头 --校验错误
     * 2开头 --真实业务错误（从ldap获取）
     */
    SUCCESS("00000","成功","1"),
    FAILED("00004","失败","1"),
    Err_00001("00001","网络与服务器异常，请稍后再试！","1"),
    INVALID_SIGN("00002","无效签名","1"),
    INVALID_TOKEN("00003","无效token","1");


    private String code;
    private String msg;
    private String type;

    ResultCode(String code, String msg, String type) {
        this.code = code;
        this.msg = msg;
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
